package com.tianpengtech.front.web.index;

import com.jfinal.aop.Clear;
import com.tianpengtech.front.web.common.constant.Page;
import com.tianpengtech.front.web.common.controller.BaseController;
import com.tianpengtech.front.web.common.interceptor.PassportInterceptor;

/**
 * Controller for web users without logged in.
 * @author Delicate
 */
@Clear(PassportInterceptor.class)
public class IndexWebController extends BaseController {
    /**
     * Site homepage
     */
    public void index(){
        renderTemplate(Page.INDEX);
    }

    public void register() {
        renderTemplate(Page.REGISTER);
    }

    /**
     * Price introduction
     */
    public void summary(){
        renderTemplate(Page.SUMMARY);
    }

    public void p404(){
        renderTemplate(Page.p404);
    }

    public void p500(){
        renderTemplate(Page.p500);
    }

    public void agreement(){
        renderTemplate(Page.AGREEMENT);
    }

    public void forget(){
        renderTemplate(Page.FORGET);
    }

}
